<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加</title>
<link href="__STATIC__/admin/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">表单</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form method="post"  enctype="multipart/form-data" action="{:url('Admin/admin_add')}">
    <ul class="forminfo">
    <li><label>姓名</label><input name="a_name" type="text" class="dfinput" id="a_name"/><i>姓名不能为空</i></li>
    <li><label>密码</label><input name="a_pwd" type="password" class="dfinput" /></li>
    <li><label>等级编号</label>    
    <select name="r_id" class="dfinput">
    {volist name="jf_role" id="role"}
        <option  value="{$role.r_id}">{$role.r_role}</option>    
     {/volist}  
    </select></li> 
    <li><label>&nbsp;</label><input name="sub" type="submit" class="btn" value="添加" onclick="return yz()"/></li>
    </ul>
    </form>   
    </div>
    <script>
        function yz()
        {
        	var a_name=document.getElementById("a_name");
        	if(a_name.value=='')
        		{
        		   alert("姓名不能为空");
        		   a_name.focus();
        		   return false;
        		}
        }
    </script>
</body>
</html>
